package com.tudouji.project.produce.mapper;

import java.util.List;

import com.tudouji.project.bill.domain.Whinform;
import com.tudouji.project.produce.domain.Whinapply;

/**
 * 入库申请单Mapper接口
 * 
 * @author tudouji
 * @date 2022-06-01
 */
public interface WhinapplyMapper 
{
    /**
     * 查询入库申请单
     * 
     * @param guid 入库申请单ID
     * @return 入库申请单
     */
    public Whinapply selectWhinapplyById(String guid);

    /**
     * 查询入库申请单列表
     * 
     * @param whinapply 入库申请单
     * @return 入库申请单集合
     */
    public List<Whinapply> selectWhinapplyList(Whinapply whinapply);

    /**
     * 新增入库申请单
     * 
     * @param whinapply 入库申请单
     * @return 结果
     */
    public int insertWhinapply(Whinapply whinapply);

    /**
     * 修改入库申请单
     * 
     * @param whinapply 入库申请单
     * @return 结果
     */
    public int updateWhinapply(Whinapply whinapply);

    /**
     * 删除入库申请单
     * 
     * @param guid 入库申请单ID
     * @return 结果
     */
    public int deleteWhinapplyById(String guid);

    /**
     * 批量删除入库申请单
     * 
     * @param guids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWhinapplyByIds(String[] guids);

    public List<Whinapply> selectWhinapplyListByUser(Whinapply apply);

    public List<Whinapply> selectApplyPendingList(Whinapply apply);

    public List<Whinapply> selectWhinapplyListBySR(Whinapply apply);

    public List<Whinapply> selectWhinapplyListByBZ(Whinapply apply);

    public Whinapply selectDetailById(Long id);

    public Whinapply selectWhinapplyByAutoId(Long id);

    List<Whinform> findDetail(Whinform in);

    public List<Whinapply> selectList(Whinapply apply);
}
